package cn.itsource.org.ro;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RegisterUserPhoneRo {
    @NotBlank(message = "手机号不能为空")
    @Length(max = 11,min = 11,message = "手机号输入格式错误")
    private String phone;
    @NotBlank(message = "验证码不能为空")
    private String phoneCode;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "确认密码不能为空")
    private String passwordRepeat;
}
